package com.eastfair.venueservice.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.eastfair.venueservice.enumeration.ServiceLossLossSourceEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.eastfair.annotation.annotation.vo.VoInfo;
import com.eastfair.annotation.model.BaseVoGroupClass;
import com.eastfair.venueservice.enumeration.ServiceLossGoodsLossStateEnum;
import com.eastfair.venueservice.enumeration.ServiceLossReworkStateEnum;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.eastfair.vo.BaseVO;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 实体类
 * 报损记录
 * </p>
 *
 * @author linan
 * @since 2022-09-19
 */
@Data
@ApiModel(value = "ServiceLossVO", description = "报损记录")
public class ServiceLossVO extends BaseVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private Long id;

    /**
     * 是否启用（确认状态）：1是 已确认；0否 未确认
     */
    @ApiModelProperty(value = "是否启用（确认状态）：1是 已确认；0否 未确认")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long tenantId;
    /**
     * 库存编码
     */
    @ApiModelProperty(value = "库存编码")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "库存编码长度不能超过255")
    private String inventoryCode;
    /**
     * 报损类型 #{SEVERE_DAMAGE:严重损坏;PARTIAL_DAMAGE:部分损坏;SLIGHT_DAMAGE:轻微损坏}
     */
    @ApiModelProperty(value = "报损类型 #{SEVERE_DAMAGE:严重损坏;PARTIAL_DAMAGE:部分损坏;SLIGHT_DAMAGE:轻微损坏}")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private ServiceLossGoodsLossStateEnum goodsLossState;
    /**
     * 返修入库状态 #{NO:未返修入库;YES:已返修入库}
     */
    @ApiModelProperty(value = "返修入库状态 #{NO:未返修入库;YES:已返修入库}")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private ServiceLossReworkStateEnum reworkState;
    /**
     * 损坏数量
     */
    @ApiModelProperty(value = "损坏数量")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BigDecimal lossNum;
    /**
     * 报损来源 #{IN_INVENTORY:入库报损;RETURN_SERVICE:归还报损}
     */
    @ApiModelProperty(value = "报损来源 #{IN_INVENTORY:入库报损;RETURN_SERVICE:归还报损}")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private ServiceLossLossSourceEnum lossSource;
    /**
     * 报损日期
     */
    @ApiModelProperty(value = "报损日期")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private LocalDate lossTime;
    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    protected LocalDateTime createTime;
    /**
     * 报损经办人
     */
    @ApiModelProperty(value = "报损经办人")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long lossOperator;
    /**
     * 报损经办人姓名
     */
    @ApiModelProperty(value = "报损经办人姓名")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String lossOperatorName;
    /**
     * 返修入库日期
     */
    @ApiModelProperty(value = "返修入库日期")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private LocalDate repairTime;
    /**
     * 返修经办人
     */
    @ApiModelProperty(value = "返修经办人")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long repairOperator;
    /**
     * 返修经办人姓名
     */
    @ApiModelProperty(value = "返修经办人姓名")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String repairOperatorName;

    /**
     * 服务名称
     */
    @ApiModelProperty(value = "服务名称")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String serviceName;
    /**
     * 商品图片
     */
    @ApiModelProperty(value = "商品图片")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String picUrl;
    /**
     * 服务规格ID
     */
    @ApiModelProperty(value = "服务规格ID")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long serviceSpecsId;
    /**
     * 规格
     */
    @ApiModelProperty(value = "商品规格")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String serviceSpecsName;
    /**
     * 服务分类
     */
    @ApiModelProperty(value = "服务分类")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long serviceCategoryId;
    /**
     * 服务分类名称
     */
    @ApiModelProperty(value = "服务分类名称")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String serviceCategoryName;
    /**
     * 服务来源
     */
    @ApiModelProperty(value = "服务来源")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String sourceProvider;
}
